package holiday;

import java.io.*;
import java.nio.charset.StandardCharsets;

public class Pw {
    public static void main(String[] args) throws FileNotFoundException {
        FileOutputStream fos=new FileOutputStream("pw3.txt");
        OutputStreamWriter osw=new OutputStreamWriter(fos, StandardCharsets.UTF_8);
        BufferedWriter bw=new BufferedWriter(osw);
        PrintWriter pw=new PrintWriter(bw);
        pw.println("我陪你度过了几个的春夏");
        pw.println("曾跃然纸上的多少个情话");
        pw.println("为了她偷偷的学会了吉他");
        pw.println("想把她最喜欢的情话弹给她");
        System.out.println("写入完毕");
        pw.close();
    }
}
